define(["jquery"],function($){
  var shop= function(){
    var $xuan = $(".xuan div")
    for(var i=0; i<$xuan.length; i++){
      (function(num){
        $($xuan[num]).on("click",function(){
          console.log("hello");
            $($xuan[num]).css("background-color","yellow").css(
              {"text-align":"center","color":"#ccc"}
            );
              $($xuan[num]).text("√");

        })
      })(i)
    }
  }

  return{
    shop:shop
  }


})
